// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import 'normalize.css'
import store from './store'
import Vant from 'vant';
import 'vant/lib/index.css';
import VueLazyload from 'vue-lazyload'

// 导入
import './mock'
import bus from './event/index'
import { httpInstance } from './http'
import Vueswiper from 'vue-awesome-swiper'
import 'vue-awesome-swiper/node_modules/swiper/dist/css/swiper.css'

// 注册
Vue.use(bus);
Vue.use(Vueswiper);
Vue.use(httpInstance);
Vue.use(Vant);
Vue.use(VueLazyload, {
  preLoad:1.3,
  error: 'dist/loading.gif',
  attempt:1,
  listenEvents: [ 'scroll' ]
});

Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  router,
  store,
  render: h=> h(App)
}).$mount('#app');
